package com.example.hospital.api.service;

import com.example.hospital.api.common.PageUtils;
import com.example.hospital.api.db.pojo.MedicalDeptEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * @Description //TODO
 * @Param $
 * @return $
 * @Date $ $
 * @Author wj
 **/
@Service
public interface MedicalDeptService {
    public HashMap searchDeptAndSub();
    public void insert(MedicalDeptEntity entity);

    HashMap searchById(int id);

    @Transactional
    public void update(MedicalDeptEntity entity);

    public void deleteByIds(Integer[] ids);

    public PageUtils searchByPage(Map param);

    public ArrayList<HashMap> searchAll();

}
